<?php

namespace Gds\AchatBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class ReglementFournisseurType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
             ->add('date','date',array('widget'=>'single_text','format'=>'dd/MM/yyyy'))
            ->add('heure')
            ->add('reference')
                ->add('fournisseur')
        ;
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Gds\AchatBundle\Entity\ReglementFournisseur'
        ));
    }

    public function getName()
    {
        return 'gds_achatbundle_reglementfournisseurtype';
    }
}
